package com.example.controller;

import com.example.entity.Server;
import com.example.utils.R;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author 王鹤蒲
 * @Date 2023 09 07
 */
@RestController
@Api(tags = "系统监控信息API",description="提供系统监控信息相关的 REST API")
@RequestMapping("/monitor")
public class MonitorController {


    @RequestMapping(value="/server",method= RequestMethod.GET)
    @ResponseBody
    public R getServerInfo() throws Exception {
        Server server=new Server();
        server.copyTo();
        return R.success(server);
    }
}
